<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var price=prompt("请输入商品原价：");
			alert("优惠价格为："+price*0.8+"元")
		</script>
	</body>
</html>
